package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author sss
 * @since 2022-12-26
 */
@Getter
@Setter
@TableName("t_login_log")
@ApiModel(value = "LoginLog对象", description = "")
public class LoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键ID")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
      private String id;

      @ApiModelProperty("登录用户ID")
      private String adminId;

      @ApiModelProperty("登录时间")
      private Date date;

      @ApiModelProperty("登录IP")
      private String ip;

      @ApiModelProperty("登录地区")
      private String location;

      @ApiModelProperty("登录浏览器")
      private String browser;

    @TableLogic
    private String isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    
}
